package com.taorui.service;

import java.util.List;

import com.taorui.dao.DatasDao;
import com.taorui.entities.Record;

public class DatasService {
	private DatasDao dataDao;

	public DatasService() {
		dataDao = new DatasDao();
	}

	public String datas() {
		List<Record> records = dataDao.seleWareh();
		return records.get(0).getRecord();
	}

	public void updateData(String data) {
		String sql = "update tb_data set record=? where id=1";
		dataDao.updateData(data);
	}
}
